From: Darcy Date: Thu, 23 Oct 2014 20:11:09 +0000 (+1100) Subject: dateMenu: Fix typo in _isToday() X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2000 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=111a9e13f20913bcf935155e09fe01916730c866;p=gnome-shell.git dateMenu: Fix typo in _isToday() getDay() is the day of week, what we want there is getDate(). https://bugzilla.gnome.org/show_bug.cgi?id=738725 --- diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js index 79787eb8e..4bf22b46e 100644 --- a/js/ui/dateMenu.js +++ b/js/ui/dateMenu.js @@ -147,7 +147,7 @@ const DateMenuButton = new Lang.Class({ let now = new Date(); return now.getYear() == date.getYear() && now.getMonth() == date.getMonth() && - now.getDay() == date.getDay(); + now.getDate() == date.getDate(); }, _appInstalledChanged: function() {